package org.hbhk.hxl.gateway.exception;

/**
 * The Class ESBRunTimeException.
 */
public class RouteException extends RuntimeException {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -6251205304926889694L;

	/** The code. */
	protected String code = "700";

	/** The type. */
	protected String type = "route_exception";

	/**
	 * Instantiates a new eSB run time exception.
	 * 
	 * @param string the string
	 */
	public RouteException(String string) {
		super(string);
	}

	@Override
	public synchronized Throwable fillInStackTrace() {
		return this;
	}

	/**
	 * Instantiates a new eSB run time exception.
	 */
	public RouteException() {
	}

	/**
	 * Gets the code.
	 * 
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * Gets the type.
	 * 
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	public RouteException(String msg, String type, String code) {
		this.type = type;
		this.code = code;
	}

}
